﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace TaoBaoProject.Common
{
    public class BasePage : System.Web.UI.Page
    {
        protected override void OnInit(EventArgs e)
        {
            if (ContextWeb.CurrentUser == null)
            {
                FormsAuthentication.RedirectToLoginPage();
                Response.End();
            }
            base.OnInit(e);
        }
    }
}